<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>薪资类型表</title>
#parse("sys/header.html")
<style type="text/css">
 #ys{
    color:red;

    }
</style>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			#if($shiro.hasPermission("dictwagestype:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("dictwagestype:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("dictwagestype:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
				<i id="ys" style="margin-left:130px;">{{one}}</i>
											<div class="form-group">
			   	<div class="col-sm-2 control-label">名称</div>
			   	<div class="col-sm-10">
			      <input id="name" type="text" class="form-control" v-model="dictWagesType.name" placeholder="名称" v-on:blur="idNameValid"/>
			    </div>
			</div>
			    <i id="ys" style="margin-left:130px;">{{two}}</i>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">岗位id</div>
			   	<div class="col-sm-10">
			      <!-- <input type="text" class="form-control" v-model="dictWagesType.jobid" placeholder="岗位id"/> -->
			      <input type="text" style="display:none" class="form-control" v-model="dictWagesType.jobid" placeholder="岗位"  />
			      <input type="text" id="jobName" class="form-control" v-model="dictWagesType.jobName" placeholder="岗位" readonly="readonly" @click="chooseJob" v-on:blur="checkJob"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">结算方式（0：固定薪资，1：业绩提成）</div>
			    <label class="radio-inline">
				  <input type="radio" name="statementstype" value="0" v-model="dictWagesType.statementstype"/> 固定薪资
				</label>
				<label class="radio-inline">
				  <input type="radio" name="statementstype" value="1" v-model="dictWagesType.statementstype"/> 业绩提成
				</label>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">固定薪资</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictWagesType.fixedpay" placeholder="固定薪资"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">排序</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictWagesType.orderno" placeholder="排序"/>
			    </div>
			</div>
									<!-- <div class="form-group">
			   	<div class="col-sm-2 control-label">备注字段</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictWagesType.excol" placeholder="备注字段"/>
			    </div>
			</div> -->
									<div class="form-group">
			   	<div class="col-sm-2 control-label">备注</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictWagesType.memo" placeholder="备注"/>
			    </div>
			</div>
									<div class="form-group" style="display:none">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictWagesType.createtime" placeholder="创建时间"/>
			    </div>
			</div>
									<div class="form-group" style="display:none">
			   	<div class="col-sm-2 control-label">创建人</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictWagesType.createby" placeholder="创建人"/>
			    </div>
			</div>
									<div class="form-group" style="display:none">
			   	<div class="col-sm-2 control-label">修改时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictWagesType.updatetime" placeholder="修改时间"/>
			    </div>
			</div>
									<div class="form-group" style="display:none">
			   	<div class="col-sm-2 control-label">修改人</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictWagesType.updateby" placeholder="修改人"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">状态</div>
			   	<label class="radio-inline">
				  <input type="radio" name="state" value="false" v-model="dictWagesType.state"/> 禁用
				</label>
				<label class="radio-inline">
				  <input type="radio" name="state" value="true" v-model="dictWagesType.state" /> 正常
				</label>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
	<div id="zjJobName" style="display:none;">
		<table id="zjJobId"></table>
		<div id="jqGridPagercf" style='position:relative;'></div>
	</div>
</div>

<script src="${rc.contextPath}/js/zjdc/dictwagestype.js?_${date.systemTime}"></script>
</body>
</html>